<template>
	<view v-html="info">
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info: ''
			};
		},
		onLoad(options) {
			console.log(options)
			this.getInfo(options.type)
			uni.setNavigationBarTitle({
				title: options.title
			})
		},
		methods:{
			getInfo(type) {
				uni.$u.http.post('/getconfig', {
					type: type
				}).then(res => {
					if (res.code == 1) {
						res.data.config = res.data.config.replace(/<img/g,
							"<img style='max-width:100%;height:auto'")
						this.info = res.data.config
				
					}
				}).catch((res) => {
				
				})
			}
		}
	}
</script>

<style lang="less">

</style>